package src.main.chouxianggongchang.cat_factory_impl;

import src.main.chouxianggongchang.ZoonAbstractMain;
import src.main.chouxianggongchang.ZoonCanFactory;
import src.main.chouxianggongchang.extends_abstract.CatLiEntity;
import src.main.chouxianggongchang.extends_abstract.DogKeEntity;

/**老李工厂*/
public class LaoLiFactory implements ZoonCanFactory {
    @Override
    public ZoonAbstractMain catCan() {
        System.out.println("老李家猫罐头");
        return new CatLiEntity();
    }

    @Override
    public ZoonAbstractMain dogCan() {
        System.out.println("老李家狗罐头");
        return new DogKeEntity();
    }
}
